import request from '@/utils/request'

// 查询考勤异动列表
export function listAbnormalAttend(query) {
  return request({
    url: '/hr/abnormalAttend/list',
    method: 'get',
    params: query
  })
}

// 查询考勤异动详细
export function getAbnormalAttend(id) {
  return request({
    url: '/hr/abnormalAttend/' + id,
    method: 'get'
  })
}

// 新增考勤异动
export function addAbnormalAttend(data) {
  return request({
    url: '/hr/abnormalAttend',
    method: 'post',
    data: data
  })
}

// 修改考勤异动
export function updateAbnormalAttend(data) {
  return request({
    url: '/hr/abnormalAttend',
    method: 'put',
    data: data
  })
}

// 删除考勤异动
export function delAbnormalAttend(id) {
  return request({
    url: '/hr/abnormalAttend/' + id,
    method: 'delete'
  })
}
